home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / swingall.jar / javax / swing / text / html / HTMLDocument$HTMLReader$HiddenAction.class (.txt) < prev    next >
Encoding:
Java Class File  |  1999-07-15  |  1.4 KB  |  34 lines

  1. package javax.swing.text.html;
  2.  
  3. import javax.swing.text.MutableAttributeSet;
  4. import javax.swing.text.SimpleAttributeSet;
  5. import javax.swing.text.html.HTML.Attribute;
  6. import javax.swing.text.html.HTML.Tag;
  7.  
  8. public class HTMLDocument$HTMLReader$HiddenAction extends HTMLDocument.HTMLReader.TagAction {
  9.    // $FF: synthetic field
  10.    private final HTMLDocument.HTMLReader this$1;
  11.  
  12.    public HTMLDocument$HTMLReader$HiddenAction(HTMLDocument.HTMLReader var1) {
  13.       super(var1);
  14.       this.this$1 = var1;
  15.    }
  16.  
  17.    public void end(HTML.Tag var1) {
  18.       if (!this.isEmpty(var1)) {
  19.          SimpleAttributeSet var2 = new SimpleAttributeSet();
  20.          var2.addAttribute(Attribute.ENDTAG, "true");
  21.          this.this$1.addSpecialElement(var1, var2);
  22.       }
  23.  
  24.    }
  25.  
  26.    boolean isEmpty(HTML.Tag var1) {
  27.       return var1 != Tag.APPLET && var1 != Tag.SCRIPT;
  28.    }
  29.  
  30.    public void start(HTML.Tag var1, MutableAttributeSet var2) {
  31.       this.this$1.addSpecialElement(var1, var2);
  32.    }
  33. }
  34.